#include <iostream>
#include <cstring>

using namespace std;

int main()
{
	int i = 0;
	char *input;
	
	cout << "Enter words (to stop, type the word done):\n";
	cin >> input;
	while(strcmp(input, "done") != 0)
	{
		i++;
		cin >> input;
	}
	
	cout << "you have inputed: " << i << " words" << endl;
	cin.get();
	
	return 0;
}
